package com.tzt.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 
 * <描述>代理商商品实体
 * @author harryleng
 * @version [版本号, 2018年3月30日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@JsonInclude(Include.NON_NULL)
public class AgentProductEntity implements Serializable
{
    private Integer id;

    /**
     * 代理商id
     */
    private Integer agentId;

    /**
     * 产品id
     */
    private Integer productId;

    /**
     * 管理员id
     */
    private Integer adminId;

    /**
     * 代理商成本价
     */
    private BigDecimal agentCost;

    /**
     * 代理商售价
     */
    private BigDecimal agentPrice;

    /**
     * 状态 0：失效,1：生效
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;

    private static final long serialVersionUID = 1L;

    public Integer getId()
    {
        return id;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getAgentId()
    {
        return agentId;
    }

    public void setAgentId(Integer agentId)
    {
        this.agentId = agentId;
    }

    public Integer getProductId()
    {
        return productId;
    }

    public void setProductId(Integer productId)
    {
        this.productId = productId;
    }

    public Integer getAdminId()
    {
        return adminId;
    }

    public void setAdminId(Integer adminId)
    {
        this.adminId = adminId;
    }

    public BigDecimal getAgentCost()
    {
        return agentCost;
    }

    public void setAgentCost(BigDecimal agentCost)
    {
        this.agentCost = agentCost;
    }

    public BigDecimal getAgentPrice()
    {
        return agentPrice;
    }

    public void setAgentPrice(BigDecimal agentPrice)
    {
        this.agentPrice = agentPrice;
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    @Override public String toString()
    {
        StringBuilder sb = new StringBuilder("AgentProductEntity{");
        sb.append("id=").append(id);
        sb.append(", agentId=").append(agentId);
        sb.append(", productId=").append(productId);
        sb.append(", adminId=").append(adminId);
        sb.append(", agentCost=").append(agentCost);
        sb.append(", agentPrice=").append(agentPrice);
        sb.append(", status=").append(status);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", updatedAt=").append(updatedAt);
        sb.append('}');
        return sb.toString();
    }
}